<?php

namespace App\Http\Controllers\General;

use App\Common\Traits\CaptchaTrait;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class CaptchaController extends Controller
{
    use CaptchaTrait;
    //
    public function calculateCaptcha()
    {
        $captcha=$this->generateCaptcha();
        return $this->success($captcha,'验证码生成成功');
    }
}
